{include file='../../../PublicView/include.html'}
<script src="/assets/shopadmin/shopmodule/event_step3.js"></script>
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
	<div class="taeapp admin-table-side tips tips-small tips-notice tips-no-icon">
		<!--菜单部分-->
		<div class="taeapp admin-nav">
			{include file='../../../PublicView/shopleft.html'}
		</div>
		<!--菜单部分-->
	</div>
	<div class="taeapp admin-table-main">
		<!--内容部分-->
		<ul class="breadcrumb">
				<li><a href="/">互动到店</a> <span class="divider">/</span></li>
				<li>奖品管理 <span class="divider">/</span></li>
				<li class="active">{$title}</li>
		</ul>
		<!--内容部分-->
			{include file='../../../PublicView/showmessage.html' info=$info}
		<div class="row">
			<div class="panel">
				<div class="panel-header clearfix">
					<h3 class="pull-left"><span class="label label-warning">{$title}</span></h3>
					<div class="pull-right">
						<button class="button button-small helper" data-tip="在此处设置奖品。其中，所有奖品的概率总和不应大于100。如果概率总和大于100，则系统以所有奖品的概率总和约分至百分数进行计算。例如，两款奖品概率分别为90，80，则两者的概率分别为90/170和80/170，约分至百分数两者的概率约为52%和48%。公式为 N1/(N1+N2+N3...)"><span class="x-icon x-icon-mini x-icon-info " >?</span> 帮助</button>
					</div>
				</div>
				<div class="grid hide">
						<input type="file" class="g-u file-input" id="J_UploaderBtn" value="上传文件" name="Filedata" >
						<input type="hidden" id="J_Urls" class="J_Urls" name="urls" value="" />
				</div>
				<div class="panel-body clearfix ">
					<div class="row hide gift-add">
						<span class="x-icon x-icon-small x-icon-error" style="position:absolute;"><i class="icon icon-white icon-remove"></i></span>
						{include file="./gift_table.html" tools=$tools}
					</div>
					<form method="post" action="/?a=save&m=shopadmin&c=gifts">
					<input type="hidden" class="tnm" name="toolname" value="{$toolname}">
					<div class="form-horizontal">
					<ul id="J_UploaderQueue"></ul>
						{if !$gifts && $edit_gifts}
							本活动没有任何奖品，请直接添加！
						{/if}
						{if !$gifts && !$edit_gifts}
							<div class="row gift-add">
							{include file="./gift_table.html" tools=$tools}
							</div>
						{else}
							{assign var="i" value=0}
							{foreach from=$gifts key=key item=item}
								<div class="row g{$key} gift-add">
								<input type="hidden" value="{$item.id}" name="id[]" />
								{if $i>0}<span class="x-icon x-icon-small x-icon-error" data-gid="g{$key}" style="position:absolute;"><i class="icon icon-white icon-remove"></i></span>{/if}
								 {include file="./gift_table.html" item=$item key=$key}
								</div>
								{assign var="i" value=1}
							{/foreach}
						{/if}
					</div>
					{if $edit_gifts!="single"}
						{if $edit_gifts}
						<div class="row toolbar pull-left">
						<span class="auxiliary-text">小提示：只要刷新页面即可找回已保存的奖品。</span>
						</div>
						{/if}
					<div class="row toolbar pull-right">
					<!-- <button class="button button-mini button-danger" type="button"><i class="icon icon-white icon-minus"></i>删除</button> -->
					<button class="button button-mini button-success" type="button"><i class="icon icon-white icon-plus"></i>增加</button>
					<!-- <span class="x-icon x-icon-small x-icon-error"><i class="icon icon-white icon-minus"></i></span> 
					<span class="x-icon x-icon-small x-icon-success"><i class="icon icon-white icon-plus"></i></span>  -->
					</div>
					{/if}
					{if !$edit_gifts}
					<!-- <div class="control-group span20 centered res">
					<div class="button pre_step" >上一步</div>
					<button class="button save" type="submmit" >下一步</button>
					</div> -->
					{else}
					<!-- <div class="control-group span20 centered res">
					<button class="button save" type="submmit" >完成</button>
					</div> -->
					{/if}
					<div class="control-group span20 centered res">
					<button class="button save" type="submmit" >完成</button>
					</div>
					</form>
					<!--内容部分-->
				</div>
				<div class="J_MinDateMaxDate">
				</div>
			</div>
		</div>
	</div>
</div>